package agents.intelligence;

import model.Model;
import model.Model.Directions;
import model.info.Constants;
import model.mapping.MapPoint;
import model.route.Step;

public class DriverDecisionMaker {
	
	/*private Model model;
	
	public DriverDecisionMaker(Model modelo) {
		
		model = modelo;
	}
	
	public Boolean isAceptableRoute(int sentido,Step current) {
		
		Boolean correct = false;
		String step = current.getInstruccion();
		if (step.contains(Constants.NORTH)) {
			if (sentido == Directions.UP.ordinal() || 
				sentido == Directions.RIGHTUP.ordinal() || 
				sentido == Directions.LEFTUP.ordinal())
				correct = true;
		}
		else if (step.contains(Constants.SOUTH)) {
			if (sentido == Directions.DOWN.ordinal() || 
				sentido == Directions.RIGHTDOWN.ordinal() || 
				sentido == Directions.LEFTDOWN.ordinal())
				correct = true;
		}
		else if (step.contains(Constants.EAST)) {
			if (sentido == Directions.RIGHT.ordinal() || 
				sentido == Directions.RIGHTUP.ordinal() || 
				sentido == Directions.RIGHTDOWN.ordinal())
				correct = true;
		}
		else if (step.contains(Constants.WEST)) {
			if (sentido == Directions.LEFT.ordinal() || 
				sentido == Directions.LEFTUP.ordinal() || 
				sentido == Directions.LEFTDOWN.ordinal())
				correct = true;
		}
		return correct;
	}*/
}
